<?php//引入根目录config文件include_once('../../config.php');echo $_REQUEST['device_uid'];//$_device=select_lines_all_items($table_prefix."rpa_device_data","","device_uid = '1'","9990");$_device=select_one_line_all_items($table_prefix."rpa_device_data","device_uid = '".$_REQUEST['device_uid']."'");if($_device['status']=="正常"){// 设置响应头为 JSON 格式    header('Content-Type: application/json');// 输出 JSON 数据    echo json_encode($_device);}if(!$_device['device_uid']){    // 创建一个示例数据数组    $data = [        'status' => 0,        'msg' => '设备未启用',    ];    //插入新的数据    $_new_device['ai_device_uid']=$_REQUEST['device_uid'];    $_new_device['ai_status']='未启用';    $_insert_device=insert_date($table_prefix."rpa_device_data",$_new_device);    $query=mysql_query($_insert_device) or die ('插入数据失败'.mysql_error().$_insert_device);    mysql_close($con);};?>